package com.congee02.aop;

import com.congee02.aop.proxy.nondynamic.UserServiceLogStaticProxy;
import com.congee02.aop.proxy.nondynamic.UserServiceNotifyStaticProxy;
import com.congee02.aop.service.UserServiceImpl;

/**
 * @author congee(congee02 @ 163.com)
 * @date 1/26/2023 1:34 PM
 */
public class StaticProxyTest {

    public static void main(String[] args) {
        UserServiceImpl service
                = new UserServiceImpl();
        UserServiceLogStaticProxy logProxy
                = new UserServiceLogStaticProxy(service);
        UserServiceNotifyStaticProxy notifyProxy
                = new UserServiceNotifyStaticProxy(logProxy);
        System.out.println(notifyProxy.save("KEN"));
    }

}
